package com.hotelvip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 通过此对象封装从数据库查询到的菜单信息
 * @author Lzh
 * @date 2020/11/30 14:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "菜单对象",description = "菜单对象SysMenu")
@TableName("sys_menus")
public class SysMenu extends BasePojo{
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "菜单id",name = "id")
	private Integer id;
	/**菜单名称*/
	@ApiModelProperty(value = "菜单名称",name = "name")
	private String name;
	/**菜单url: log/doFindPageObjects*/
	@ApiModelProperty(value = "菜单路径",name = "url",example = "log/log_list")
	private String url;
	/**菜单类型(两种:按钮,普通菜单)*/
	@ApiModelProperty(value = "菜单类型",name = "type",example = "1为按钮，2为链接")
	private Integer type=1;
	/**排序(序号)*/
	@ApiModelProperty(value = "排序",name = "sort")
	private Integer sort;
	/**备注*/
	@ApiModelProperty(value = "备注",name = "note")
	private String note;
	/**上级菜单id*/
	@ApiModelProperty(value = "上级菜单id",name = "parentId")
	private Integer parentId;
	/**菜单对应的权限标识(sys:log:delete)*/
	@ApiModelProperty(value = "菜单权限标识",name = "permission",example = "sys:user:view")
	private String permission;
	/**创建用户*/
	@ApiModelProperty(value = "创建的用户",name = "createdUser")
	private String createdUser;
	/**修改用户*/
	@ApiModelProperty(value = "修改的用户",name = "modifiedUser")
	private String updatedUser;
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//	private Date createdTime;
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//	private Date updatedTime;


}
